using System;
using System.Collections;
using System.Data;

namespace Portal.Workflow.Model
{
	/// <summary>
	/// Summary description for EmployeeCls.
	/// </summary>
	public class EmployeeCls
	{
		public string EmployeeId;
		public string LoginName;
		public string FullName;
        public string OfficeCode;
        public string ProcessType = "to";
        public string[] TempRoleId=new string[0];
        public RoleCls ToRole;
        public string BatchId = "";

		public EmployeeCls()
		{
		}

        public EmployeeCls(string _EmployeeId, string _LoginName, string _FullName, string _OfficeCode)
		{
			EmployeeId = _EmployeeId;
			LoginName = _LoginName;
			FullName = _FullName;
            OfficeCode = _OfficeCode;
		}


        public string GetXml()
        {
            DataSet ds = new DataSet();
            ds.Tables.Add("Info");
            ds.Tables["Info"].Columns.Add("EmployeeId");
            ds.Tables["Info"].Columns.Add("LoginName");
            ds.Tables["Info"].Columns.Add("FullName");
            ds.Tables["Info"].Columns.Add("OfficeCode");
            ds.Tables["Info"].Columns.Add("ProcessType");
            
            ds.Tables["Info"].Rows.Add(new object[]{
                EmployeeId,LoginName,FullName,OfficeCode,ProcessType
            });
            return ds.GetXml();
        }
	}
}
